#ifndef COLLISION_DETECTION_H
#define COLLISION_DETECTION_H

#include <iostream>
#include "vector.h"

using namespace std;

Vector sphereTriangleCollision(Vector triangleVertices[], Vector sphereCenter, float sphereRadius);
Vector sphereTriangleEdgeCollision(Vector triangleVertices[], Vector sphereCenter, float sphereRadius);
int spherePosition(float radius, float distance);
Vector getEdgeCollisionOffset(Vector sphereCenter, Vector polygonVertices[], float sphereRadius, float distanceFromPlane);
Vector closestPointOnLine(Vector pointA, Vector pointB, Vector point);
bool lineIntersectsPlane(Vector triangle[], Vector line[]);
Vector getCollisionOffset(Vector &normalVector, float sphereRadius, float distanceFromPlane);

#endif //COLLISION_DETECTION_H 